package com.example.controller;

import com.example.model.ProductProcess;
import com.example.service.ProductProcessService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/ProductProcess")
public class ProductProcessController {

    @Resource
    public ProductProcessService productProcessService;

    @GetMapping("/selectByQrcode")
    public ProductProcess selectProductProcess(String product_no,String process_no) {
        return  productProcessService.selectProductProcess(product_no,process_no);

    }

}
